package com.threadmethod.getId;

/**
 * @PackageName:com.threadmethod.getId
 * @ClassName:SubThreads
 * @Description:
 * @Author: zhangxiaoyu
 * @date 2020/11/19 16:56
 */
public class SubThreads  extends  Thread{

    @Override
    public void run() {
        System.out.println("名字："+Thread.currentThread().getName()+",id:"+this.getId());
    }
}
